<?php
/**
 * 首页控制器
 *
 * @package     Include  (controller)
 * @author      hary <hary@taomee.com>
 * @version     $ID 2010-3-31 $
 */
class Admin_result extends Controller
{
	private $result;
	/**
	 * 构造函数
	 */
	function __construct()
	{
		parent::__construct();
		$this->loadModel('card_model');
        $this->tpl->template_dir = SYS_PATH  . 'template/admin/result/';
	}
	/**
	 * 默认执行方法
	 * 
	 * @return 
	 */
	function index()
	{
	}
	
	/**
	 * 错误页面跳转
	 */
	function error()
	{
		$this->result = $this->in_var;
		$tpl_name     = "error.html";
		
		$this->tpl->assign('result',$this->result);
		$this->tpl->display($tpl_name);
	}
	
	/**
	 * 成功页面跳转
	 */
	function success()
	{
		$this->result = $this->in_var;
		$tpl_name     = "success.html";
		
		$this->tpl->assign('result',$this->result);
		$this->tpl->display($tpl_name);
	}
	
}